{config_load file="$language/affiliate.conf" section="affiliate_summary"}
<div class="content-block">
	<div class="gray-title-top">
		<div class="b-left"></div>
			<span class="bold tsb">{#heading_title#}</span>
		<div class="b-right"></div>
	</div>
	<div class="con-cen">
		<div class="content-text">
<div class="page-block">
	<span class="page-block-title">{#text_greeting#}{$affiliate.affiliate_firstname} {$affiliate.affiliate_lastname} ({#text_affiliate_id#} {$affiliate.affiliate_id})</span>
	<span class="page-block-text">
		{$FORM_ACTION}{#text_affiliate_period#}{$period_selector}</form>
	</span>
</div>
{literal}
<script language="javascript"><!--
function popupAffWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=450,height=120,screenX=150,screenY=150,top=150,left=150')
}
//--></script>
{/literal}

<div class="page-block">
	<span class="page-block-title">{#text_summary_title#} ({#text_summary#})</span>
	<span class="page-block-text">
		<table width="100%">
          <tr>
            <td class="aff-stat-td aff-stat-td-right">{#text_impressions#}{$LINK_IMPRESSION}{#text_summary_help#}</a></td>
            <td class="aff-stat-td aff-stat-td-right">{$affiliate_impressions}</td>
            <td class="aff-stat-td aff-stat-td-right">{#text_visits#}{$LINK_VISIT}{#text_summary_help#}</a></td>
            <td class="aff-stat-td">{$affiliate.clickthrough_count}</td>
          </tr>
          <tr>
            <td class="aff-stat-td aff-stat-td-right">{#text_transactions#}{$LINK_TRANSACTIONS}{#text_summary_help#}</a></td>
            <td class="aff-stat-td aff-stat-td-right">{$affiliate_transactions}</td>
            <td class="aff-stat-td aff-stat-td-right">{#text_conversions#}{$LINK_CONVERSION}{#text_summary_help#}</a></td>
            <td class="aff-stat-td">{$affiliate_conversions}</td>
          </tr>
          <tr>
            <td class="aff-stat-td aff-stat-td-right">{#text_amount#}{$LINK_AMOUNT}{#text_summary_help#}</a></td>
            <td class="aff-stat-td aff-stat-td-right">{$affiliate_amount}</td>
            <td class="aff-stat-td aff-stat-td-right">{#text_average#}{$LINK_AVERAGE}{#text_summary_help#}</a></td>
            <td class="aff-stat-td">{$affiliate_average}</td>
          </tr>
          <tr>
            <td class="aff-stat-td aff-stat-td-right">{#text_comission_rate#}{$LINK_COMISSION_RATE}{#text_summary_help#}</a></td>
            <td class="aff-stat-td aff-stat-td-right">{$affiliate_percent}</td>
            <td class="aff-stat-td aff-stat-td-right">{#text_comission#}{$LINK_COMISSION}{#text_summary_help#}</a></td>
            <td class="aff-stat-td">{$affiliate_commission}</td>
          </tr>
        </table>
	</span>
</div>



      {if AFFILATE_USE_TIER == 'true'}
      <table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td>{#text_summary_title_tier#}</td>
          </tr>
        </table>
		<table width="100%" border="0" cellpadding="4" cellspacing="2">
		  {$affiliate_percent_tier_table}
        </table>
      {/if}
{$LINK_BANNER}&nbsp;&nbsp;{$LINK_CLICKS}&nbsp;&nbsp;{$LINK_SALES}
		</div>
	</div>
	<div class="con-foo"><div class="sb-left"></div><div class="sb-right"></div></div>
</div>